package com.gome.util;

import com.danga.MemCached.MemCachedClient;

public class MemcachedSpringTest {

	private MemCachedClient cachedClient;
	
	public void init() {
	//	ApplicationContext context = new ClassPathXmlApplicationContext("com/loujinhe/config/beans.xml");
		//cachedClient = (MemCachedClient)context.getBean("memcachedClient");
	}
	
	public void testMemcachedSpring() {
		UserBean user = new UserBean("lou", "jason");
		cachedClient.set("user", user);
		UserBean cachedBean = (UserBean)user;
		//Assert.assertEquals(user, cachedBean);
	}
	
}